package com.huashi.dealer.commonEntity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 商品条码模型类
 * 对应PHP的GoodsBarcode.php
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("yoshop_goods_barcode")
@Schema(description = "商品条码实体")
public class GoodsBarcode extends BaseModel {

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    @Schema(description = "主键ID")
    private Long id;

    /**
     * 商品ID
     */
    @TableField("goods_id")
    @Schema(description = "商品ID")
    private Long goodsId;

    /**
     * 图片ID(关联文件记录表)
     */
    @TableField("image_id")
    @Schema(description = "图片ID(关联文件记录表)")
    private Long imageId;

    /**
     * 小程序ID
     */
    @TableField("wxapp_id")
    @Schema(description = "小程序ID")
    private Long wxappId;

    /**
     * 创建时间
     */
    @TableField("create_time")
    @Schema(description = "创建时间")
    private Long createTime;
} 